package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FGgtDailyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FGgtDailyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTradeDateIsNull() {
            addCriterion("trade_date is null");
            return (Criteria) this;
        }

        public Criteria andTradeDateIsNotNull() {
            addCriterion("trade_date is not null");
            return (Criteria) this;
        }

        public Criteria andTradeDateEqualTo(String value) {
            addCriterion("trade_date =", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotEqualTo(String value) {
            addCriterion("trade_date <>", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateGreaterThan(String value) {
            addCriterion("trade_date >", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateGreaterThanOrEqualTo(String value) {
            addCriterion("trade_date >=", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLessThan(String value) {
            addCriterion("trade_date <", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLessThanOrEqualTo(String value) {
            addCriterion("trade_date <=", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLike(String value) {
            addCriterion("trade_date like", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotLike(String value) {
            addCriterion("trade_date not like", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateIn(List<String> values) {
            addCriterion("trade_date in", values, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotIn(List<String> values) {
            addCriterion("trade_date not in", values, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateBetween(String value1, String value2) {
            addCriterion("trade_date between", value1, value2, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotBetween(String value1, String value2) {
            addCriterion("trade_date not between", value1, value2, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andBuyAmountIsNull() {
            addCriterion("buy_amount is null");
            return (Criteria) this;
        }

        public Criteria andBuyAmountIsNotNull() {
            addCriterion("buy_amount is not null");
            return (Criteria) this;
        }

        public Criteria andBuyAmountEqualTo(Float value) {
            addCriterion("buy_amount =", value, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountNotEqualTo(Float value) {
            addCriterion("buy_amount <>", value, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountGreaterThan(Float value) {
            addCriterion("buy_amount >", value, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountGreaterThanOrEqualTo(Float value) {
            addCriterion("buy_amount >=", value, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountLessThan(Float value) {
            addCriterion("buy_amount <", value, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountLessThanOrEqualTo(Float value) {
            addCriterion("buy_amount <=", value, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountIn(List<Float> values) {
            addCriterion("buy_amount in", values, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountNotIn(List<Float> values) {
            addCriterion("buy_amount not in", values, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountBetween(Float value1, Float value2) {
            addCriterion("buy_amount between", value1, value2, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyAmountNotBetween(Float value1, Float value2) {
            addCriterion("buy_amount not between", value1, value2, "buyAmount");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeIsNull() {
            addCriterion("buy_volume is null");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeIsNotNull() {
            addCriterion("buy_volume is not null");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeEqualTo(Float value) {
            addCriterion("buy_volume =", value, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeNotEqualTo(Float value) {
            addCriterion("buy_volume <>", value, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeGreaterThan(Float value) {
            addCriterion("buy_volume >", value, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeGreaterThanOrEqualTo(Float value) {
            addCriterion("buy_volume >=", value, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeLessThan(Float value) {
            addCriterion("buy_volume <", value, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeLessThanOrEqualTo(Float value) {
            addCriterion("buy_volume <=", value, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeIn(List<Float> values) {
            addCriterion("buy_volume in", values, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeNotIn(List<Float> values) {
            addCriterion("buy_volume not in", values, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeBetween(Float value1, Float value2) {
            addCriterion("buy_volume between", value1, value2, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andBuyVolumeNotBetween(Float value1, Float value2) {
            addCriterion("buy_volume not between", value1, value2, "buyVolume");
            return (Criteria) this;
        }

        public Criteria andSellAmountIsNull() {
            addCriterion("sell_amount is null");
            return (Criteria) this;
        }

        public Criteria andSellAmountIsNotNull() {
            addCriterion("sell_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSellAmountEqualTo(Float value) {
            addCriterion("sell_amount =", value, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountNotEqualTo(Float value) {
            addCriterion("sell_amount <>", value, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountGreaterThan(Float value) {
            addCriterion("sell_amount >", value, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountGreaterThanOrEqualTo(Float value) {
            addCriterion("sell_amount >=", value, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountLessThan(Float value) {
            addCriterion("sell_amount <", value, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountLessThanOrEqualTo(Float value) {
            addCriterion("sell_amount <=", value, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountIn(List<Float> values) {
            addCriterion("sell_amount in", values, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountNotIn(List<Float> values) {
            addCriterion("sell_amount not in", values, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountBetween(Float value1, Float value2) {
            addCriterion("sell_amount between", value1, value2, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellAmountNotBetween(Float value1, Float value2) {
            addCriterion("sell_amount not between", value1, value2, "sellAmount");
            return (Criteria) this;
        }

        public Criteria andSellVolumeIsNull() {
            addCriterion("sell_volume is null");
            return (Criteria) this;
        }

        public Criteria andSellVolumeIsNotNull() {
            addCriterion("sell_volume is not null");
            return (Criteria) this;
        }

        public Criteria andSellVolumeEqualTo(Float value) {
            addCriterion("sell_volume =", value, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeNotEqualTo(Float value) {
            addCriterion("sell_volume <>", value, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeGreaterThan(Float value) {
            addCriterion("sell_volume >", value, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeGreaterThanOrEqualTo(Float value) {
            addCriterion("sell_volume >=", value, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeLessThan(Float value) {
            addCriterion("sell_volume <", value, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeLessThanOrEqualTo(Float value) {
            addCriterion("sell_volume <=", value, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeIn(List<Float> values) {
            addCriterion("sell_volume in", values, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeNotIn(List<Float> values) {
            addCriterion("sell_volume not in", values, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeBetween(Float value1, Float value2) {
            addCriterion("sell_volume between", value1, value2, "sellVolume");
            return (Criteria) this;
        }

        public Criteria andSellVolumeNotBetween(Float value1, Float value2) {
            addCriterion("sell_volume not between", value1, value2, "sellVolume");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}